package main

import "fmt"

// 结构体定义

type Student struct {
	id   int
	name string
	age  int
	addr string
}

func main() {
	var s1 = Student{1, "张三", 18, "北京"}
	var s2 = Student{2, "李四", 19, "北京"}
	var s3 = Student{3, "王五", 20, "北京"}
	var map1 = make(map[int]Student)
	map1[1] = s1
	map1[2] = s2
	map1[3] = s3
	fmt.Println(map1)
}
